﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：我的咨询管理
  //创建人：赵国伟
  //生成时间：2012/03/17 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Home_MyConsult : BaseUserPage
{
    private readonly ConsultManage _consultManage = new ConsultManage();
    protected List<GoodsConsultInfo> _goodsConsultList = new List<GoodsConsultInfo>();

    protected AsPage asPage = new AsPage();
    protected int _pageSize = 10;
    protected int _curPage = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (string.IsNullOrEmpty(Request.QueryString["page"]))
            {
                _curPage = Utility.G<int>("page");
            }
            asPage.CurPage = _curPage;
            asPage.PageSize = _pageSize;
            _goodsConsultList = _consultManage.QueryListAsPageByUser("", UserID, "", asPage);
        }
    }
}